All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class quicktime.util.QTPointer

java.lang.Object
   |
   +----quicktime.QTObject
           |
           +----quicktime.util.QTPointerRef
                   |
                   +----quicktime.util.QTPointer

public class QTPointer
extends QTPointerRef
implements QuickTimeLib, Cloneable
The QTPointer class implements a pointer that can be used in calls to QuickTime.


Constructor Index

 o QTPointer(byte[])
Construct a pointer from input data.
 o QTPointer(int, boolean)
Allocate a pointer for general use.
 o QTPointer(QTHandleRef, int, int)
This constructor is used to create a QTPointer object from a Handle.
 o QTPointer(QTPointerRef, QTPointerRef)
Construct a pointer from the concatenation of the two supplied pointers.

Method Index

 o clone()
Returns a copy of this object
 o concatenate(QTPointerRef)
Concatenates the supplied pointer to this pointer.
 o fromEncodedImage(EncodedImage)
Returns EncodedImage data as a QTPointer.
 o fromSCData(SoundComponentData)
The buffer that contains the sound data.
 o setSize(int)
This method will resize the memory that a pointer points to.

Constructors

 o QTPointer
 public QTPointer(int size,
                  boolean clear) throws QTException
Allocate a pointer for general use.

Parameters:
size - the size of the pointer to create.
clear - clear the pointer upon creation.
 o QTPointer
 public QTPointer(byte byteArray[]) throws QTException
Construct a pointer from input data.

Parameters:
byteArray - the input data.
 o QTPointer
 public QTPointer(QTHandleRef hdl,
                  int offset,
                  int size) throws QTException
This constructor is used to create a QTPointer object from a Handle. The contents of the handle will be copied into the pointer. This will copy size bytes from the handle + offset. It will bounds check the size to be not greater than the size of the handle.

Parameters:
hdl - the handle to copy.
offset - you can specify an offset within the handle from which to copy the data
size - the amount of bytes to copy
 o QTPointer
 public QTPointer(QTPointerRef firstPtr,
                  QTPointerRef secondPtr) throws QTException
Construct a pointer from the concatenation of the two supplied pointers. The First pointer will appear first in the concatentated result.

Parameters:
firstPtr - the first Pointer
secondPtr - the second Pointer

Methods

 o fromSCData
 public static QTPointer fromSCData(SoundComponentData scd)
The buffer that contains the sound data.

Returns:
the QTPointer buffer
See Also:
getBuffer
 o fromEncodedImage
 public static QTPointer fromEncodedImage(EncodedImage image) throws QTException
Returns EncodedImage data as a QTPointer. This will copy the data if the source is an int or byte encoded image, but will return the same object if it is a RawEncodedImage.

Parameters:
image - the encoded image data
Returns:
the encoded image data as a Pointer
 o clone
 public Object clone()
Returns a copy of this object

Overrides:
clone in class Object
 o setSize
 public void setSize(int newSize) throws UtilException
This method will resize the memory that a pointer points to. This operation can fail if memory cannot increase its size

QuickTime::SetPtrSize

Parameters:
newSize - the new size
 o concatenate
 public void concatenate(QTPointerRef ptr) throws UtilException
Concatenates the supplied pointer to this pointer. This operation will fail if unable to resize the pointer.


All Packages  Class Hierarchy  This Package  Previous  Next  Index